class fragments::apache2 {
      package { 'apache2':
              ensure => present,
      }
      service { 'apache2':
              ensure => running,
              require => Package['apache2']
      }
      file { '/etc/apache2/sites-enabled/001_mysite.conf':
           ensure => present,
           owner => root,
           source => 'puppet:///modules/fragments/mysite.conf',
           notify => Service['apache2']
      }
}